using System;
using System.Collections.Generic;

namespace CustomerMgr.Data.Models
{
    public class Customer
    {
        public Customer()
        {
            this.Debits = new List<Debit>();
            this.Orders = new List<Order>();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public virtual ICollection<Debit> Debits { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
    }
    public class CustomerSummary
    {
        public CustomerSummary() { }
        public int CustomerId { get; set; }
        public string CustomerName { get; set; }
        public string Description { get; set; }
        public decimal? TotalDebit { get; set; }
        public decimal? TotalRepay { get; set; }
        public decimal? TotalDiv { get; set; }
    }
}
